<template>
  <!-- <div class="header" @click.stop = 'theme'>
    <div class="header-left" @click.stop="back"></div>
    <p class="header-title">{{title}}</p>
    <div class="header-right"></div>
  </div> -->
  <Header class="header">
    <div class="header-left" @click.stop="back" slot="left"></div>
    <p class="header-title" slot="center">{{title}}</p>
    <div class="header-right" slot="right"></div>
  </Header>
</template>

<script>
import Header from '../Commonheader.vue'
export default {
  name: 'DetailHeader',
  components: {
    Header
  },
  data () {
    return {
    }
  },
  methods: {
    back () {
      window.history.back()
    }
  },
  props: {
    title: {
      type: String,
      default: '',
      required: true
    }
  }
}
</script>

<style scoped lang='scss'>
  @import '../../assets/css/variable.scss';
  @import '../../assets/css/mixin.scss';
  .header {
    position: relative;
    z-index: 999;
    .header-left{
      @include bg_img('../../assets/images/back');
    }
    .header-right{
      @include bg_img('../../assets/images/more');
    }
    .header-title {
      text-align: center;
      line-height: 100px;
      color: #fff;
      @include font_size($font_medium_s);
      @include no-wrap();
      /* @include font_color(); */
    }
  }
</style>
